package com.zt.dev.physicalequipment.mapper;

import com.zt.dev.physicalequipment.pojo.PhysicalEquipmentMessage;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PhysicalEquipmentMessageMapper {

    int insert(PhysicalEquipmentMessage equipment);

    int update(PhysicalEquipmentMessage equipment);

    int delete(Integer id);

    int deletes(@Param(value = "ids")Integer[] ids);

    List<PhysicalEquipmentMessage> getAll(Integer start,Integer end);

    List<PhysicalEquipmentMessage> getAllWithoutPageBean();

    int getCount();

    List<PhysicalEquipmentMessage> getByEquipment(Integer equipmentId);

    PhysicalEquipmentMessage getById(Integer id);

	List<Integer> getEquipmentIdsByIds(@Param(value = "ids")Integer[] ids);

}
